<div class="modal fade in ip-box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="edit">
	<div class="modal-dialog " role="document" style="margin: 254px auto;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h4 class="modal-title" id="myModalLabel">资源类型管理 — 修改</h4>
			</div>
			<div class="modal-body">
				<form name="editForm" novalidate>
                    <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">名称：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   ng-class="test" 
                                   name="name" 
                                   class="form-control" 
                                   autocomplete="off" 
                                   required 
                                   ng-model="edit_name"
                                   >
                            <label class="red required">*</label>
                            <div class="error" ng-show="editForm.name.$dirty && editForm.name.$invalid">
                                <small class="error" ng-show="editForm.name.$error.required">名称不能为空</small>
                            </div>
                        </div>
                    </div>
                    <div class="form-group height-auto">
                        <label class="col-xs-12 col-sm-3 control-label text-right">英文名称：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   ng-class="test" 
                                   name="enName" 
                                   class="form-control" 
                                   autocomplete="off" 
                                   required 
                                   ng-model="edit_enName" 
                                   >
                            <label class="red required">*</label>
                            <div class="error" ng-show="editForm.enName.$dirty && editForm.enName.$invalid">
                                <small class="error" ng-show="editForm.enName.$error.required">英文名称不能为空</small>
                            </div>
                        </div>
                    </div>
                    <div class="form-group height-auto">
                        <label class="col-xs-12 col-sm-3 control-label text-right">资源明细表：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   ng-class="test" 
                                   name="resTable" 
                                   class="form-control" 
                                   autocomplete="off" 
                                   required
                                   ng-model="edit_resTable" 
                                   >
                            <label class="red required">*</label>
                            <div class="error" ng-show="editForm.resTable.$dirty && editForm.resTable.$invalid">
                                <small class="error" ng-show="editForm.resTable.$error.required">资源明细表不能为空</small>
                            </div>
                        </div>
                    </div>
    				<div class="form-group height-auto">
    					<label class="col-xs-12 col-sm-3 control-label text-right">可否零售：</label>
    					<div class="one-line col-xs-12 col-sm-3">
    						<select name="isRetail" 
                                    required
    							    ng-options="obj.id as obj.name for obj in editresouceTypeIsRetailSelect"
    							    ng-model="edit_isRetail">
    						</select>
    					</div>
    				</div>
    				<div class="form-group height-auto">
                            <label class="col-xs-12 col-sm-3 control-label text-right">描述：</label>
                            <div class="col-xs-12 col-sm-9">
                                <textarea rows="5"
                                          type="text" 
                                          name="description" 
                                          class="form-control" 
                                          ng-model="edit_description" />
                                </textarea>
                            </div>
                    </div>
				</form>
				<div class="col-sm-12">
					<div class="modal-footer">
						<button type="button" 
                                class="btn btn-primary" 
                                data-dismiss="modal"
                                ng-disabled="editForm.$invalid"
							    ng-click="confirmEdit()"
                                >修改
						</button>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>